using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Domains
{
    /// <summary>
    /// <para>Delete Coded Value From Domain</para>
    /// <para>Removes a value from a coded value domain.</para>
    /// <para>从编码值属性域中删除值。</para>
    /// </summary>    
    [DisplayName("Delete Coded Value From Domain")]
    public class DeleteCodedValueFromDomain : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public DeleteCodedValueFromDomain()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_workspace">
        /// <para>Input Workspace</para>
        /// <para>The workspace containing the domain to be updated.</para>
        /// <para>包含要更新的域的工作区。</para>
        /// </param>
        /// <param name="_domain_name">
        /// <para>Domain Name</para>
        /// <para>The name of the coded value domain to be updated.</para>
        /// <para>要更新的编码值属性域的名称。</para>
        /// </param>
        /// <param name="_code">
        /// <para>Code Value</para>
        /// <para>The value(s) to be deleted from the specified domain.</para>
        /// <para>要从指定域中删除的值。</para>
        /// </param>
        public DeleteCodedValueFromDomain(object _in_workspace, object _domain_name, List<object> _code)
        {
            this._in_workspace = _in_workspace;
            this._domain_name = _domain_name;
            this._code = _code;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Delete Coded Value From Domain";

        public override string CallName => "management.DeleteCodedValueFromDomain";

        public override List<string> AcceptEnvironments => ["autoCommit", "workspace"];

        public override object[] ParameterInfo => [_in_workspace, _domain_name, _code, _out_workspace];

        /// <summary>
        /// <para>Input Workspace</para>
        /// <para>The workspace containing the domain to be updated.</para>
        /// <para>包含要更新的域的工作区。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Workspace")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_workspace { get; set; }


        /// <summary>
        /// <para>Domain Name</para>
        /// <para>The name of the coded value domain to be updated.</para>
        /// <para>要更新的编码值属性域的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Domain Name")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _domain_name { get; set; }


        /// <summary>
        /// <para>Code Value</para>
        /// <para>The value(s) to be deleted from the specified domain.</para>
        /// <para>要从指定域中删除的值。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Code Value")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _code { get; set; }


        /// <summary>
        /// <para>Updated Input Workspace</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Input Workspace")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_workspace { get; set; }


        public DeleteCodedValueFromDomain SetEnv(int? autoCommit = null, object workspace = null)
        {
            base.SetEnv(autoCommit: autoCommit, workspace: workspace);
            return this;
        }

    }

}